import win32api
import win32con
from datetime import datetime
import time
from winotify import Notification

img_relative_path = 'D:/MyFile/Python_Code/Ghost_Window/Source/image/icon/Genshin.jpg'

def notif(title,msg):
    Notification(app_id="Ghost_Window",title=title,msg=msg,icon=img_relative_path).show()

def set_alarm(target_hour, target_minute, msg):
    global count
    now = datetime.now()
    if now.hour  == target_hour and now.minute  == target_minute:
        if count == 0:
            notif("下班提醒", msg)
            count = 1
    else:
        count = 0